500 internal Error handling for checkpresent