How To Declare If Statement On The Method