This function suppose to check attachment
Added checkattach plugin.