if ($check){ #do something; } else { $problem etc. }