Adding check for php notice